import axios from '@/utils/axios.js'
var pre = 'platform/admin/v1/project/'
var func = ['getList', 'getAddDic', 'getPrjStatusDic', 'getCellData', 'create']
var api = {}
func.forEach(value => {
  api[value] = pre + value
})

var getAddDic = (params) => {
  return axios.get(api.getAddDic, {params: params})
}

var getPrjStatusDic = (params) => {
  return axios.get(api.getPrjStatusDic, {params: params})
}

var getList = (params) => {
  return axios.get(api.getList, {params: params})
}

var getCellData = (params) => {
  return axios.get(api.getCellData, {params: params})
}

var create = (params) => {
  return axios.post(api.create, params)
}

export { getAddDic, getPrjStatusDic, getList, getCellData, create }
